package org.ch02.test09.demo00;

import org.ch02.test00.demo08.myWork.DbUtil;

/**
 * @author CSY
 * @date 2025 - 03 - 25
 */
public class MainTest {
    public static void main(String[] args) {
        //复制功能测试
        Person p1  = new Person("站三",18);
        Person p2 = new Person();
        BeanUtil.copyProperties(p1,p2);
        System.out.println(p2);

        //获取/设置
        Person person = new Person("站三",18);
        BeanUtil.setProperty(person,"name","李四");
        Object name = BeanUtil.getProperty(person, "name");
        System.out.println(name);
    }
}
